<template>
  <el-container class="home_container111">
    <el-header>
    <h1>Test1</h1>
    </el-header>

    <el-container>
      <el-aside width="200px">
            <el-menu>
              <el-submenu index="1">
                <template slot="title">
                  <i class="el-icon-location"></i>
                  <span>导航一</span>
                </template>
                  <el-menu-item index="1-1"> <i class="el-icon-location"></i>选项1</el-menu-item>
                  <el-menu-item index="1-2"> <i class="el-icon-location"></i>选项2</el-menu-item>
                  <el-menu-item index="1-3"> <i class="el-icon-location"></i>选项3</el-menu-item>
              </el-submenu>

              <el-submenu index="2">
                <template slot="title">
                <i class="el-icon-menu"></i>
                <span slot="title">导航二</span>
                </template>
                  <el-menu-item index="2-1"> <i class="el-icon-menu"></i>选项1</el-menu-item>
                  <el-menu-item index="2-2"> <i class="el-icon-menu"></i>选项2</el-menu-item>
                  <el-menu-item index="2-3"> <i class="el-icon-menu"></i>选项3</el-menu-item>
              </el-submenu>

              <el-submenu index="3">
                <template slot="title">
                <i class="el-icon-setting"></i>
                <span slot="title">导航三</span>
                </template>
                  <el-menu-item index="3-1"> <i class="el-icon-setting"></i>选项1</el-menu-item>
                  <el-menu-item index="3-2"> <i class="el-icon-setting"></i>选项2</el-menu-item>
                  <el-menu-item index="3-3"> <i class="el-icon-setting"></i>选项3</el-menu-item>
              </el-submenu>

              <el-submenu index="4">
                <template slot="title">
                <i class="el-icon-user"></i>
                <span slot="title">导航四</span>
                </template>
                  <el-menu-item index="4-1"> <i class="el-icon-user"></i>选项1</el-menu-item>
                  <el-menu-item index="4-2"> <i class="el-icon-user"></i>选项2</el-menu-item>
                  <el-menu-item index="4-3"> <i class="el-icon-user"></i>选项3</el-menu-item>
              </el-submenu>
            </el-menu>

      </el-aside>
      <el-container>
        <el-main>
          <div style="margin-top: 60px;margin-left:330px;width: 500px;height: 500px;border: 0px solid red;" >
          <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
            <el-form-item label="用户名" prop="name">
              <el-input v-model="ruleForm.name"></el-input>
            </el-form-item>
            <el-form-item label="密码" prop="name">
              <el-input v-model="ruleForm.name"></el-input>
            </el-form-item>
            <el-form-item label="姓名" prop="name">
              <el-input v-model="ruleForm.name"></el-input>
            </el-form-item>
            <el-form-item label="性别" prop="name">
            <template>
              <el-radio v-model="radio" label="1">男</el-radio>
              <el-radio v-model="radio" label="2">女</el-radio>
            </template>
              </el-form-item>
            <el-form-item label="联系电话" prop="name">
              <el-input v-model="ruleForm.name"></el-input>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" @click="onSubmit">立即创建</el-button>
              <el-button>取消</el-button>
            </el-form-item>
          </el-form>
            </div>
        </el-main>
        <el-footer>Footer</el-footer>
      </el-container>
    </el-container>
  </el-container>
</template>
<script>
export default{
  data() {
    return {
      ruleForm: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      },
      rules: {
        name: [
          { required: true, message: '请输入活动名称', trigger: 'blur' },
          { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
        ],
        region: [
          { required: true, message: '请选择活动区域', trigger: 'change' }
        ],
        date1: [
          { type: 'date', required: true, message: '请选择日期', trigger: 'change' }
        ],
        date2: [
          { type: 'date', required: true, message: '请选择时间', trigger: 'change' }
        ],
        type: [
          { type: 'array', required: true, message: '请至少选择一个活动性质', trigger: 'change' }
        ],
        resource: [
          { required: true, message: '请选择活动资源', trigger: 'change' }
        ],
        desc: [
          { required: true, message: '请填写活动形式', trigger: 'blur' }
        ]
      }
    };
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>
<style>


.home_container111{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
</style>
